import {
	axios
} from "./axios.js";

// 用电话，密码登录
export const receptionLoginWithPassword = (parameter) => {
	return axios({
		url: "/login/receptionLogin-with-password",
		method: 'post',
		data: parameter,
	})
}

// 使用手机号验证码登录
export const loginByCode = (parameter) => {
	return axios({
		url: "/login/loginByCode",
		method: 'post',
		data: parameter
	})
}

// 请求用户信息
export const getUserInfo = () => {
	return axios({
		url: '/user/getUserInfo',
		method: 'get',
		headers: {
			token: uni.getStorageSync("token")
		}
	})
}